<?php
switch ($strAction) {
	case 'index':
	case 'list':
	case 'mine':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/news.css'
							
		);
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/jquery.select.js', 
							HOST_STATICS . 'js/library/init.js'
		);
		if($strAction == 'list') {
			$arrJS 	= array (	
								HOST_STATICS . 'js/news/list.js'
			);
		}
		break;
	case 'add';
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/autocomplete.css',
							HOST_STATICS . 'css/news.css'
							
		);
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/jquery.select.js', 
							HOST_STATICS . 'js/library/init.js'
		);
		$arrJS 	= array (	
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/language/news/create.js',
							HOST_STATICS . 'js/news/create.js'
		);
		break;
	case 'edit';
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/news.css'
							
		);
		$arrJSBefore = array(
							HOST_STATICS . 'js/library/jquery.select.js', 
							HOST_STATICS . 'js/library/init.js'
		);
		$arrJS 	= array (	
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/language/news/edit.js',
							HOST_STATICS . 'js/news/edit.js'
		);
		break;
	case 'detail':
		$arrCSS = array	(
							HOST_STATICS . 'css/news.css'
							
		);
		$arrJS 	= array (							
							HOST_STATICS . 'js/language/news/detail.js',
							HOST_STATICS . 'js/news/detail.js',
							HOST_STATICS . 'js/news/cmt.js'
		);
		break;
	case 'search':
		$arrCSS = array	(
							HOST_STATICS . 'css/themes/base/ui.all.css',
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'js/selectbox/multi/jquery.multiSelect.css',
							HOST_STATICS . 'css/news.css',
							
						
		);
		$arrJSBefore = array(		
												
							HOST_STATICS . 'js/library/jquery.select.js', 
							HOST_STATICS . 'js/library/init.js',
							HOST_STATICS . 'js/selectbox/multi/jquery.bgiframe.min.js',
							HOST_STATICS . 'js/selectbox/multi/jquery.multiSelect.js',
							
							
		);
		$arrJS		= array(
							HOST_STATICS . 'js/library/ui/ui.datepicker.js', 
							HOST_STATICS . 'js/language/news/search.js',
							HOST_STATICS . 'js/news/search.js'
		);
		break;
	default:
		break;
}
$objCommon 		= new Vfriend_Common();
$arrCategory	= $objCommon->getCategory(0,10,0,0);
$arrMenu		= array();
if($arrCategory) {
	foreach($arrCategory as $value) {
		$value['sub'] = $objCommon->getCategory($value['categoryid'],10,0,0);
		$arrMenu[]	  = $value;
	}
}
$this->view->arrMenu	= $arrMenu;
?>
